package com.example.store2.Mapper;

import com.example.store2.pojo.Classes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClassesMapper {
    @Select("select * from classes,OC where OC.occupation_id=#{occupationId} and classes.id=OC.classes_id")
    List<Classes> getclasses(Integer occupationId);
}
